home *** CD-ROM | disk | FTP | other *** search
/ PC Play 129 / pc play 129.iso / Demo / man2 / man2.exe / data / scripts / starship_fly1.lua < prev    next >
Encoding:
Text File  |  2007-01-25  |  3.2 KB  |  157 lines

  1. desc = getEffectDescriptionP(ENET_EFFECT_PS_STARSHIP_FLY1)
  2.  
  3. desc.ClassID = ENCLASS_SIMPLEPARTICLESYSTEM
  4. desc.EffectClassType = ENECT_PARTICLESYSTEM
  5.  
  6. desc.ScriptSet = ENSCRIPTSET_UNKNOWN
  7. desc.RelativePosition = ENLOCALPOS_NOTSPECIFIED
  8. desc.LocalPosition = D3DXVECTOR3:new(0,0,0)
  9. desc.isAnimateTexture = false
  10. desc.RenderType = ENRENDERTYPE_GEOMETRY
  11.  
  12. Emitter = desc.PS.PSDescription
  13. Emitter.ParticleTypesNumber = 1
  14. Emitter.EmitterPosition = D3DXVECTOR3:new(0,0,0)
  15. Emitter.EmitterDirection = D3DXVECTOR3:new(0,0,0)
  16. Emitter.EmitterLifeTime = 1
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49. PT = Emitter.ParticleTypesParams[1]
  50. PT.IsEmitterLocked = false
  51. PT.DrawOrder = 1
  52. PT.Material = ENMAT_PARTICLE_LIGHT
  53.  
  54.  
  55. PT.TextureName = "environment_effect_explosion_smoke1.dds"
  56.  
  57. PT.ParticlesPerSecond = 160.0;
  58. PT.InitialNumberOfParticles = 0.0;
  59. PT.BaseLifeTime = 0.5;
  60. PT.BaseLifeTimeVariance = 0.2;
  61. PT.BaseSpeed = 15.0;
  62. PT.BaseSpeedVariance = 0.4;
  63.  
  64. PT.TangentSpeed = 0.0;
  65. PT.TangentSpeedVariance = 0.0;
  66. PT.TangentDirection = D3DXVECTOR3:new(1.0,0.0,0.0);
  67. PT.TangentAngleMin = 0.0;
  68. PT.TangentAngleMax = 6.28;
  69. PT.IsTangentDependOnBase = false;
  70.  
  71. PT.BaseAngle = 3.0;
  72. PT.BaseAngleVariance = 5.0;
  73. PT.BaseAngleSpeed = 0.2;
  74. PT.BaseAngleSpeedVariance = 0.3;
  75. PT.BaseAngleSpeedDirection = 0;
  76. PT.BaseDirection = D3DXVECTOR3:new(0.0,-1.0,0.0);
  77. PT.BaseDirectionVariance = D3DXVECTOR3:new(0.0,0.0,0.0);
  78. PT.BasePosition = D3DXVECTOR3:new(0,1,0);
  79. PT.BasePositionVariance = D3DXVECTOR3:new(1,1,1);
  80. PT.BaseSize = 5.0;
  81. PT.BaseSizeVariance = 0.1;
  82.  
  83. -- color over time
  84. PT.ColorOverTimeR[1].TimePercent = 0.0;
  85. PT.ColorOverTimeR[1].Value = 1.0;
  86. PT.ColorOverTimeG[1].TimePercent = 0.0;
  87. PT.ColorOverTimeG[1].Value = 0.2;
  88. PT.ColorOverTimeB[1].TimePercent = 0.0;
  89. PT.ColorOverTimeB[1].Value = 0.0;
  90.  
  91. PT.ColorOverTimeR[2].TimePercent = 1.0;
  92. PT.ColorOverTimeR[2].Value = 0.5;
  93. PT.ColorOverTimeG[2].TimePercent = 1.0;
  94. PT.ColorOverTimeG[2].Value = 0.5;
  95. PT.ColorOverTimeB[2].TimePercent = 1.0;
  96. PT.ColorOverTimeB[2].Value = 0.5;
  97.  
  98. -- transparency over time
  99. PT.TransparencyOverTime[1].TimePercent = 0.0;
  100. PT.TransparencyOverTime[1].Value = 0.1;
  101.  
  102. PT.TransparencyOverTime[2].TimePercent = 1.0;
  103. PT.TransparencyOverTime[2].Value = 0.0;
  104.  
  105. -- size over time
  106. PT.SizeOverTime[1].TimePercent = 0.0;
  107. PT.SizeOverTime[1].Value = 6.0;
  108.  
  109. PT.SizeOverTime[2].TimePercent = 1.0;
  110. PT.SizeOverTime[2].Value = 3.0;
  111.  
  112. -- Speed over time
  113. PT.SpeedOverTime[1].TimePercent = 0.0;
  114. PT.SpeedOverTime[1].Value = 10.0;
  115.  
  116. PT.SpeedOverTime[2].TimePercent = 1.0;
  117. PT.SpeedOverTime[2].Value = 0.0;
  118.  
  119. -- Tangent Speed over time
  120. PT.TangentSpeedOverTime[1].TimePercent = 0.0;
  121. PT.TangentSpeedOverTime[1].Value = 0.0;
  122.  
  123. PT.TangentSpeedOverTime[2].TimePercent = 1.0;
  124. PT.TangentSpeedOverTime[2].Value = 0.0;
  125.  
  126.  
  127. -- GravityAcceleration over time
  128. PT.GravityAccelerationOverTime[1].TimePercent = 0.0;
  129. PT.GravityAccelerationOverTime[1].Value = 0.0;
  130.  
  131. PT.GravityAccelerationOverTime[2].TimePercent = 1.0;
  132. PT.GravityAccelerationOverTime[2].Value = 0.0;
  133.  
  134. -- AngleSpeed over time
  135. PT.AngleSpeedOverTime[1].TimePercent = 0.0;
  136. PT.AngleSpeedOverTime[1].Value = 1.5;
  137.  
  138. PT.AngleSpeedOverTime[2].TimePercent = 1.0;
  139. PT.AngleSpeedOverTime[2].Value = 0.6;
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154. --
  155. -- end particle system description
  156. --
  157.